<?php /* Smarty version 2.6.19, created on 2012-10-04 13:55:53
         compiled from D:/xampp/htdocs/nghiepquang/templates/PageAdmin/list.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'cycle', 'D:/xampp/htdocs/nghiepquang/templates/PageAdmin/list.tpl', 46, false),)), $this); ?>
<div class="form_bound" style="margin:10px auto;width:1000px">
<table cellpadding="0" width="1000">
	<tr>
		<td  class="form_title"><strong><a href="page.html">QUẢN TRỊ PAGES</a></strong></td>
			<td class="form_title_button"><a href="page.html?cmd=delete_all_cache">Xoá cache</a></td>
				<td class="form_title_button"><a href="page.html?cmd=add">
					<img src="style/images/admin/add_button.gif" style="text-align:center" alt=""/><br />Add</a>
				</td>
				<td class="form_title_button">
					<a href="javascript:void(0);" onclick="ListPageAdminForm.cmd.value='delete_items';ListPageAdminForm.submit();"><img src="style/images/admin/delete_button.gif" alt=""/><br />Delete</a></td>
				</tr>
                </table>
	<div class="form_content">
	<table cellspacing="0" width="1000">
	<tr bgcolor="#EFEFEF" valign="top">
		<td width="100%" align="left" style="padding:10px">Tìm trang: <input name="name" type="text" id="name" style="width:200" value="<?php echo $this->_tpl_vars['name']; ?>
"> 
					<input type="submit" value="Tìm kiếm">
        	<?php if ($this->_tpl_vars['paging']): ?>
              <div class="product-list-paging"><?php echo $this->_tpl_vars['paging']; ?>
</div>
             <?php endif; ?>
             <table width="100%"><tr>
			<td width="100%">
				CHỌN: 
				[ <a href="javascript:void(0);" onclick="selectAllCheckbox(document.ListPageAdminForm,'PageAdmin',true,'#FFFFEC','white');">Tất cả</a> ] 
				[ <a href="javascript:void(0);" onclick="selectAllCheckbox(document.ListPageAdminForm,'PageAdmin',false,'#FFFFEC','white');">Bỏ chọn</a> ] 
				[ <a href="javascript:void(0);" onclick="selectAllCheckbox(document.ListPageAdminForm,'PageAdmin',-1,'#FFFFEC','white');">Chọn ngược lại</a> ] 
			</td>
			</tr></table>
			<table bgcolor="#EFEFEF" cellspacing="0" width="100%">
			<tr>
				<td width="100%">
					
					<div style="border:2px solid #FFFFFF;">
					<table width="99%" cellpadding="2" cellspacing="0" border="1" style="border-collapse:collapse" bordercolor="#CCCCCC">
                    <tr valign="middle" bgcolor="#EFEFEF" style="line-height:20px">
							<th width="20" title="check_all"><input type="checkbox" value="1" id="PageAdmin_all_checkbox" onclick="selectAllCheckbox(this.form, 'PageAdmin',this.checked,'#FFFFEC','white');"></th>
					        <th width="86" align="right" nowrap ><a href="<?php echo $this->_tpl_vars['href_id']; ?>
">ID</a> <?php echo $this->_tpl_vars['img_id']; ?>
</th>
			                <th width="158" align="left" nowrap >
								<a href="<?php echo $this->_tpl_vars['href_name']; ?>
">Tên	page</a> <?php echo $this->_tpl_vars['img_name']; ?>
							</th>
			                <th width="136" align="left" nowrap="nowrap" > <a href="<?php echo $this->_tpl_vars['href_title']; ?>
">Tiêu đề</a> <?php echo $this->_tpl_vars['img_title']; ?>
 </th>
	                  <th width="196">&nbsp;</th>
			          <th width="134" align="left" nowrap>
								<a href="<?php echo $this->_tpl_vars['href_des']; ?>
">Mô tả</a>	<?php echo $this->_tpl_vars['img_des']; ?>
						</th>
					  </tr>
						 <?php $_from = $this->_tpl_vars['items']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['items']):
?>
					  <tr bgcolor="<?php echo smarty_function_cycle(array('values' => '#f0f0f0,#ffffff'), $this);?>
" <?php echo $this->_tpl_vars['hover']; ?>
>
							<td><input name="selected_ids[]" type="checkbox" value="<?php echo $this->_tpl_vars['items']['id']; ?>
" onclick="select_checkbox(this.form,'PageAdmin',this,'#FFFFEC','white');"></td>
							<td nowrap align="right" style="padding:5px"><?php echo $this->_tpl_vars['items']['id']; ?>
</td>
							<td nowrap align="left" style="padding:5px">
						  <a href="<?php echo $this->_tpl_vars['items']['href']; ?>
" title="Bố cục trang"><?php echo $this->_tpl_vars['items']['name']; ?>
</a></td>
							<td align="left" nowrap="nowrap" style="padding:5px"><a href="<?php echo $this->_tpl_vars['items']['href']; ?>
" title="Bố cục trang"><?php echo $this->_tpl_vars['items']['title']; ?>
</a></td>
							<td align="center" style="padding:5px">[ <a href="page.html?cmd=edit&id=<?php echo $this->_tpl_vars['items']['id']; ?>
">Sửa</a> ] [ <a target="_blank" href="<?php echo $this->_tpl_vars['items']['name']; ?>
.html">View</a> ] [ <a href="page.html?cmd=copy&id=<?php echo $this->_tpl_vars['items']['id']; ?>
">Copy Page</a> ] [ <a href="page.html?cmd=delete&id=<?php echo $this->_tpl_vars['items']['id']; ?>
" onclick="return confirm('Bạn có chắc chắn muốn xoá không!')"><font color="red">Xoá</font></a> ]</td>
						  <td nowrap align="left" style="padding:5px">
							  <?php echo $this->_tpl_vars['items']['description']; ?>
							</td>
					  </tr>
						<?php endforeach; endif; unset($_from); ?>
					</table>
					
				  <input type="hidden" name="cmd" value=""/>
			  </td>
			</tr>
			</table>
			<?php if ($this->_tpl_vars['paging']): ?>
              <div class="product-list-paging"><?php echo $this->_tpl_vars['paging']; ?>
</div>
             <?php endif; ?>
			<table width="100%"><tr>
			<td width="100%">
				CHỌN: 
				[ <a href="javascript:void(0);" onclick="selectAllCheckbox(document.ListPageAdminForm,'PageAdmin',true,'#FFFFEC','white');">Tất cả</a> ] 
				[ <a href="javascript:void(0);" onclick="selectAllCheckbox(document.ListPageAdminForm,'PageAdmin',false,'#FFFFEC','white');">Bỏ chọn</a> ] 
				[ <a href="javascript:void(0);" onclick="selectAllCheckbox(document.ListPageAdminForm,'PageAdmin',-1,'#FFFFEC','white');">Chọn ngược lại</a> ] 
			</td>
			</tr></table>
			
		</td>
</tr>
	</table>	
	</div>
</div>